/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.ismaila.designPatterns.behavioural.chainofresponsibility;

/**
 *
 * @author Chelsea
 */
public class MercuryHandler extends PlanetHandler {
public void handleRequest(PlanetEnum request){
if(request==PlanetEnum.MERCURY){
System.out.println("MercuryHandlerhandles"+request);
System.out.println("Mercuryishot.nn");
}else{
System.out.println("MercuryHandlerdoesn'thandle"+request);
if(successor!=null){
successor.handleRequest(request);
}
}
}
 
}
